package com.anxinr.mapper;

import com.anxinr.pojo.entity.Goods;
import com.anxinr.pojo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author : anxinr
 * @date : 2023/2/3 11:45
 */
public interface GoodsMapper extends BaseMapper<Goods> {
    /**
     * 减库存
     * @param id
     * @return
     */
    boolean reduceInventory(@Param("id") Long id);

}
